#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time          : 2023/2/22 22:42
# File          : user_blue_one.py
# @Author       : MingTai

from flask import Blueprint, jsonify, request

user_blue = Blueprint('user_blue', __name__)


@user_blue.route('/get_user_detail', methods=['GET'])
def get_user_detail():
    return jsonify(code=200, msg="用户查询成功！", username='张三', userphone='18288889999')


@user_blue.route('/get_user_info', methods=['POST'])
def get_user_info():
    name = request.form.get('name')
    phone = request.form.get('phone')
    user_id = request.form.get('user_id')
    return jsonify(code=200, msg="用户查询成功！", username=name, userphone=phone, user_id=user_id)
